package com.redis.client;

import com.redis.client.manage.Persistent;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

/**
 * @author hetao
 */
public class MainApp extends Application {

    public static void main(String[] args) {
        launch(args);
    }

    @Override
    public void start(Stage primaryStage) {
        try {
            Parent root = FXMLLoader.load(getClass().getResource("/fxml/main.fxml"));
            primaryStage.setTitle("Hello redis");
            primaryStage.setScene(new Scene(root, 600, 600));

            Global.getInstance().init(this);
            Persistent.getInstance();
            primaryStage.show();
        }catch (Exception e) {
            e.printStackTrace();
        }
    }
}
